# THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
# ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
# THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
# PARTICULAR PURPOSE.
#
# Copyright (C) 1993 - 1996  Microsoft Corporation.  All Rights Reserved.
#
#
# Processor independent makefile

# Nmake macros for building Windows 32-Bit apps
APPVER=4.0
!include <win32.mak>

PROJ = MULTIPAD

all: $(PROJ).exe

# Define project specific macros
PROJ_OBJS  = file.obj filedlg.obj finddlg.obj mdichild.obj multipad.obj \
             print.obj printdlg.obj search.obj statbar.obj toolbar.obj
BASE_OBJS  = winmain.obj init.obj misc.obj about.obj dispatch.obj
EXTRA_LIBS = version.lib comctl32.lib
GLOBAL_DEP = globals.h resource.h
RC_DEP     = resource.h

# Dependencies
winmain.obj:  winmain.c  $(GLOBAL_DEP)
init.obj:     init.c     $(GLOBAL_DEP)
misc.obj:     misc.c     $(GLOBAL_DEP)
about.obj:    about.c    $(GLOBAL_DEP)
dispatch.obj: dispatch.c $(GLOBAL_DEP)
file.obj:     file.c     $(GLOBAL_DEP)
filedlg.obj:  filedlg.c  $(GLOBAL_DEP)
finddlg.obj:  finddlg.c  $(GLOBAL_DEP)
mdichild.obj: mdichild.c $(GLOBAL_DEP)
multipad.obj: multipad.c $(GLOBAL_DEP)
print.obj:    print.c    $(GLOBAL_DEP)
printdlg.obj: printdlg.c $(GLOBAL_DEP)
search.obj:   search.c   $(GLOBAL_DEP)
statbar.obj:  statbar.c  $(GLOBAL_DEP)
toolbar.obj:  toolbar.c  $(GLOBAL_DEP)



# Inference rule for updating the object files
.c.obj:
  $(cc) $(cdebug) $(cflags) $(cvars) $*.c

# Build rule for resource file
$(PROJ).res: $(PROJ).rc $(RC_DEP)
    $(rc) $(rcflags) $(rcvars) /fo $(PROJ).res $(PROJ).rc

# Build rule for EXE
$(PROJ).EXE: $(BASE_OBJS) $(PROJ_OBJS) $(PROJ).res
    $(link) $(linkdebug) $(guilflags) \
    $(BASE_OBJS) $(PROJ_OBJS) $(PROJ).res $(guilibs) $(EXTRA_LIBS) \
    -out:$(PROJ).exe $(MAPFILE)



# Rules for cleaning out those old files
clean:
    -del *.bak 
    -del *.pdb 
    -del *.obj 
    -del *.res 
    -del *.exp 
    -del *.map 
    -del *.sbr 
    -del *.bsc
